/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package neo.workforce.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *
 * @author krisada
 */
@Controller
public class JSONController {

    @RequestMapping(value = "/processJson", method = RequestMethod.GET)
    public @ResponseBody neo.workforce.dao.Process getProcessInJSON() {
        neo.workforce.dao.Process process = new neo.workforce.dao.Process();
        process.setId(new Long(1));
        process.setProcessId("0001");
        process.setName("Leave Process");
        process.setDescription("Leave process for Organize");
        return process;

    }
}
